package io.tim.mvc_f2.proxy.test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test06 {

	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("io/tim/mvc_f2/proxy/test/Spring-Aspectj.xml");
		HelloImpl helloImpl = (HelloImpl) context.getBean("helloImpl");
		helloImpl.sing("AspectJ");
		helloImpl.goodMorning("AspectJ");
		helloImpl.goodNight("AspectJ");
		
		Apology apology = (Apology) helloImpl;
		apology.saySorry("AspectJ");
	}
}
